<template>
  <ApiSelect v-bind="$attrs" :api="api" value-field="id" label-field="name" />
</template>
<script setup lang="ts">
import ApiSelect from '../components/ApiSelect.vue';
import { getOrgRole } from '@/api/sys/busComponentManage';
type OptionsItem = { label: string; value: string; disabled?: boolean };
const api = getOrgRole as unknown as PropType<
  (arg?: Recordable) => Promise<OptionsItem[]>
>;
</script>
